home *** CD-ROM | disk | FTP | other *** search
- Path: news.sara.nl!news
- From: "J.J.A. Koot" <sond0079>
- Newsgroups: comp.lang.c++
- Subject: friends within class
- Date: 22 Jan 1996 13:28:41 GMT
- Organization: Academic Computer Services Amsterdam (SARA)
- Message-ID: <4e03e9$o08@mira.sara.nl>
- NNTP-Posting-Host: horus.sara.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; AIX 2)
- X-URL: news:comp.lang.c++
-
- Consider the follwing fragments of code:
- -------------------------------------------
- class foo {
- class fooelement;
- typedef fooelement* pointer;
- /*friend fooelement;*/
- class fooelement {public: pointer ptr;};};
- void main(){};
- --------------------------------------------
- class fooelement;
- typedef fooelement* pointer;
- class fooelement {public: pointer ptr;};
- void main(){};
- --------------------------------------------
- IMHO it is not nice that within a class
- the friend declaration is required.
- --
- ((lambda(x)(((((x x)x)x)x)x))(lambda(x)(lambda(y)(x(x y))))) greetings
- Jacob J. A. Koot, Stichting Academisch Rekencentrum Amsterdam
- Tel: +31 20 5923019 Postbus 94613, 1090 GP, Amsterdam, Netherlands
- Fax: +31 20 6683167 WWW: http://www.sara.nl/koot E-mail: koot@sara.nl
-
-